package entity;

/**
 * Created by asus on 2017/6/19.
 */
public class Goods {
    private Long id;
    private String name;
    private String type;
    private Integer quantity;
    private float price;

    public Goods() {
    }

    public Goods(Long id, String name, String type, Integer quantity, float price) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.quantity = quantity;
        this.price = price;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quatity) {
        this.quantity = quatity;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", quatity=" + quantity +
                ", price=" + price +
                '}';
    }
}
